package s01;

/**
 * @ClassName LambdaDemo01
 * @Description TODO
 * @Author Li
 * @Date 2022/8/9 16:17
 * @ModifyDate 2022/8/9 16:17
 * @Version 1.0
 */
public class LambdaDemo01 {
    public static void main(String[] args) {
        // 匿名内部类
        Runnable task = new Runnable() {
            @Override
            public void run() { // 覆盖重写抽象方法
                System.out.println(Thread.currentThread().getName() + "线程正在执行！");
            }
        };
        new Thread(task).start(); // 启动线程
    }
}
